package com.github.fancyideas.module.view;

import com.github.fancyideas.constance.Sex;
import com.github.fancyideas.constance.VIP;
import lombok.Data;
import org.hibernate.annotations.Immutable;
import org.hibernate.annotations.Subselect;

import javax.persistence.Entity;
import javax.persistence.Id;

@Data
@Entity
@Immutable
@Subselect("select * from v_customer_shoes")
public class CustomerView {

    @Id
    private Long customerId;
    private String customerName;
    private String phone;
    private VIP vip;
    private Sex sex;
    private Integer shoesCount;
}
